package com.rboat.exam.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rboat.common.annotation.Excel;
import com.rboat.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 试卷对象 exam_test_paper
 * 
 * @author rboat
 * @date 2019-09-02
 */
public class ExamTestPaper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 试卷类型ID */
    @Excel(name = "试卷类型ID")
    private String testPaperTypeId;

    /** 试卷名称 */
    @Excel(name = "试卷名称")
    private String name;

    /** 开考时间 */
    @Excel(name = "开考时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 考试结束时间 */
    @Excel(name = "考试结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 考试时长单位分钟 */
    @Excel(name = "考试时长单位分钟")
    private Long duration;

    /** 试卷总分值 */
    @Excel(name = "试卷总分值")
    private Long score;

    /** 试卷试题生成方式 1:配置 2：机选 */
    @Excel(name = "试卷试题生成方式 1:配置 2：机选")
    private String paperMake;

    /** 试题排序（1：正常；2：随机） */
    @Excel(name = "试题排序", readConverterExp = "1=：正常；2：随机")
    private String testOrder;

    /** 试卷说明 */
    @Excel(name = "试卷说明")
    private String comment;

    /** 试卷的难度1：容易；2：常规；3：困难； */
    @Excel(name = "试卷的难度1：容易；2：常规；3：困难；")
    private String level;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createByUser;

    /** 创建部门 */
    @Excel(name = "创建部门")
    private String createByDept;

    /** 状态（0正常 1:删除） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=:删除")
    private String isDel;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTestPaperTypeId(String testPaperTypeId) 
    {
        this.testPaperTypeId = testPaperTypeId;
    }

    public String getTestPaperTypeId() 
    {
        return testPaperTypeId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setPaperMake(String paperMake) 
    {
        this.paperMake = paperMake;
    }

    public String getPaperMake() 
    {
        return paperMake;
    }
    public void setTestOrder(String testOrder) 
    {
        this.testOrder = testOrder;
    }

    public String getTestOrder() 
    {
        return testOrder;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setLevel(String level) 
    {
        this.level = level;
    }

    public String getLevel() 
    {
        return level;
    }
    public void setCreateByUser(String createByUser) 
    {
        this.createByUser = createByUser;
    }

    public String getCreateByUser() 
    {
        return createByUser;
    }
    public void setCreateByDept(String createByDept) 
    {
        this.createByDept = createByDept;
    }

    public String getCreateByDept() 
    {
        return createByDept;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("testPaperTypeId", getTestPaperTypeId())
            .append("name", getName())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("duration", getDuration())
            .append("score", getScore())
            .append("paperMake", getPaperMake())
            .append("testOrder", getTestOrder())
            .append("comment", getComment())
            .append("level", getLevel())
            .append("createByUser", getCreateByUser())
            .append("createByDept", getCreateByDept())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDel", getIsDel())
            .toString();
    }
}
